import zerorpc

def hello():
    yield "ni"
    yield "hao"
    yield "erge"

for data in hello(): {
    print(data)
}

c = zerorpc.Client()
c.connect("tcp://127.0.0.1:4242")
print(c.hello("RPC"))